package org.zhouhe.entity;

// Generated 2013-4-16 14:36:37 by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TSysUser generated by hbm2java
 */
public class User implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	private Integer userId;
	private String loginName;
	private String password;
	private String realName;
	private String email;
	private Character status;
	private Date createTime;
	private String createBy;
	private Set<TSysRole> TSysRoles = new HashSet<TSysRole>(0);

	public User() {
	}

	public User(String loginName, String password, String realName, String email, Character status, Date createTime, String createBy, Set<TSysRole> TSysRoles) {
		this.loginName = loginName;
		this.password = password;
		this.realName = realName;
		this.email = email;
		this.status = status;
		this.createTime = createTime;
		this.createBy = createBy;
		this.TSysRoles = TSysRoles;
	}

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getLoginName() {
		return this.loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRealName() {
		return this.realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Character getStatus() {
		return this.status;
	}

	public void setStatus(Character status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateBy() {
		return this.createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public Set<TSysRole> getTSysRoles() {
		return this.TSysRoles;
	}

	public void setTSysRoles(Set<TSysRole> TSysRoles) {
		this.TSysRoles = TSysRoles;
	}

	public List<Person> getPs() {
		return ps;
	}

	public void setPs(List<Person> ps) {
		this.ps = ps;
	}

	private List<Person> ps;
}
